package kr.hkit.powerjava.chapter18;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTabbedPane;

public class SwingcomponentEx extends JFrame {

	private JTabbedPane contentPane;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					SwingcomponentEx frame = new SwingcomponentEx();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public SwingcomponentEx() {
		
		
		
		initialize();
	}
	private void initialize() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JTabbedPane();
		setContentPane(contentPane);
		
		PanelJList panel_list = new PanelJList();
		contentPane.addTab("JList", null, panel_list, null);
		
		Panel_JCombobox panel_combo = new Panel_JCombobox();
		contentPane.addTab("JComboBox", null, panel_combo, null);
		
		Panel_Dialog panel_Dialog = new Panel_Dialog();
		contentPane.addTab("JDialog", null, panel_Dialog, null);
		
		Panel_JTable panel_Jtable = new Panel_JTable();
		contentPane.addTab("JTable", null, panel_Jtable, null);
	}

}
